package com.getpebble.android.common.util;

import com.google.common.base.Function;
import com.google.common.collect.Collections2;
import com.google.common.collect.Lists;
import java.util.Collection;
import java.util.List;

public class CollectionUtil {
    static Function<String, String> applyToLowercase = new Function<String, String>() {
        public String apply(String input) {
            return input.toLowerCase();
        }
    };

    public static List<String> convertToLowercaseList(Collection<String> phrases) {
        return Lists.newArrayList(Collections2.transform(phrases, applyToLowercase));
    }
}
